﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using dpdw.Creation.FactoryMethod;

namespace dpdw.testing.Creation
{
    [TestClass]
    public class TestFactoryMethod
    {
        [TestMethod]
        public void TestFactoryMethodPizzaStore1()
        {
            System.Diagnostics.Trace.WriteLine("\r\n" + "TestFactoryMethodPizzaStore1");

            PizzaStore nyPizzaStore = new NYPizzaStore();

            Pizza pizza = nyPizzaStore.OrderPizza("cheese");
            System.Diagnostics.Trace.WriteLine(pizza.Name);

            pizza = nyPizzaStore.OrderPizza("pepperoni");
            System.Diagnostics.Trace.WriteLine(pizza.Name);
        }
    }
}
